﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CertificateControl.ascx.cs" Inherits="Sicurezza.CA.Server.Controlli.CertificateControl" %>
<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
    <asp:View ID="View1" runat="server">
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" 
            onrowediting="GridView1_RowEditing" onrowupdating="GridView1_RowUpdating" 
            CellPadding="10" ForeColor="#333333" 
            GridLines="None">
            <RowStyle BackColor="#EFF3FB" />
            <Columns>
                <asp:BoundField DataField="Serial" HeaderText="Serial" 
                    SortExpression="Serial" />
                <asp:BoundField DataField="NotBefore" HeaderText="NotBefore" 
                    SortExpression="NotBefore" />
                <asp:BoundField DataField="NotAfter" HeaderText="NotAfter" 
                    SortExpression="NotAfter" />
                <asp:BoundField DataField="DN" HeaderText="DN" SortExpression="DN" />
                <asp:BoundField DataField="EMail" HeaderText="EMail" SortExpression="EMail" />
                <asp:CheckBoxField DataField="DigitalSignature" HeaderText="DigitalSignature" 
                    SortExpression="DigitalSignature" />
                <asp:CheckBoxField DataField="KeyEncipherment" HeaderText="KeyEncipherment" 
                    SortExpression="KeyEncipherment" />
                <asp:ButtonField CommandName="Edit" Text="View" />
                <asp:ButtonField CommandName="Update" Text="Download" />
            </Columns>
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#2461BF" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
    </asp:View>
    <asp:View ID="View2" runat="server">
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Back" />
        <br />
        <asp:TextBox ID="TextBox1" runat="server" Height="523px" TextMode="MultiLine" 
            Width="761px"></asp:TextBox>
    </asp:View>
</asp:MultiView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
    SelectMethod="GetAll" TypeName="Sicurezza.CA.Manager.X509Manager">
</asp:ObjectDataSource>
